TAP linking module TDI multiplexer circuitry to plural TAPs

ABSTRACT

An architecture for testing a plurality of circuits on an integrated circuit is described. The architecture includes a TAP Linking Module located between test pins on the integrated circuit and 1149.1 Test Access Ports (TAP) of the plurality of circuits to be tested. The TAP Linking Module operates in response to 1149.1 scan operations from a tester connected to the test pins to selectively switch between 1149.1 TAPs to enable test access between the tester and plurality of circuits. The TAP Linking Module&#39;s 1149.1 TAP switching operation is based upon augmenting 1149.1 instruction patterns to affix an additional bit or bits of information which is used by the TAP Linking Module for performing the TAP switching operation.

CROSS REFERENCE TO PRIOR APPLICATIONS

This application is a divisional of application Ser. No. 12/539,373,filed Aug. 11, 2009, now U.S. Pat. No. 7,925,942, issued Apr. 12, 2011;

-   Which was a divisional of application Ser. No. 11/691,600, filed    Mar. 27, 2007, now U.S. Pat. No. 7,590,910, issued Sep. 15, 2009;-   Which was a divisional of application Ser. No. 10/772,982, filed    Feb. 4, 2004, now U.S. Pat. No. 7,213,171, issued May 1, 2007;-   Which was a divisional of application Ser. No. 09/981,514, filed    Oct. 16, 2001, now U.S. Pat. No. 6,711,707, issued Mar. 23, 2004;-   Which was a divisional of application Ser. No. 09/277,504, filed    Mar. 26, 1999, now U.S. Pat. No. 6,324,662, issued Nov. 27, 2001;-   Which claimed priority from Provisional Application No. 60/079,552,    filed Mar. 27, 1998.

This application is related to provisional application Ser. No.60/024,884, filed Aug. 30, 1996 and application Ser. No. 08/918,872,filed Aug. 26, 1997, now U.S. Pat. No. 6,073,254, issued Jun. 6, 2000,the contents of each of which are incorporated herein by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

This invention relates to an improved method and system for testingmultiple intellectual property cores contained within an integratedcircuit, each core including a standard IEEE-1149.1 compliant testaccess port (TAP). A core is a predefined subcircuit function, which canbe incorporated into the design of an integrated circuit. Some examplecore functions include but are not limited to: digital signalprocessors, microcontrollers, microprocessors, and memories. The presentinvention achieves the above mentioned testing without having to changeor modify the standard TAPs of each core. Using the present invention,the TAPs of each core are made selectable such that they can beconnected to the integrated circuit pins to enable direct communicationbetween the integrated circuit pins and selected core TAPs.

2. Brief Description of the Prior Art

The IEEE-1149.1 standard, known as JTAG, is a standardized test systemdeveloped for testing chips on a board. A trend in the semiconductorindustry is for popular chip functions to evolve into intellectualproperty core circuit functions to allow them to be provided for reusein the design of larger, more complex integrated circuits. Assemiconductor chips evolve into intellectual property cores, the JTAGtest system may remain as an integral part of the core. Thus cores willcontain the JTAG test system, which facilitates the testing of the coresin chips similar to the way JTAG facilitates the testing of chips onboards.

The present invention assumes plural cores of an integrated circuit eachcontain a standard IEEE 1149.1 TAP interface comprising a test datainput (TDI), test data output (TDO), test mode select (TMS), test clock(TCK), and a test reset (TRST). According to the present invention, aswill be described in detail below, a TAP Linking Module is locatedbetween the 1149.1 interfaces of the core TAPs and a corresponding1149.1 test pin interface of the integrated circuit. The TAP LinkingModule provides selectivity between the integrated circuit's 1149.1 testpin interface and one or more of the core TAP 1149.1 test interfaces.Core testing takes place by connecting a tester of standard type to theintegrated circuit test pins, communicating information via the testpins to the TAP Linking Module to select one or more of the core TAPs tobe connected the test pins, and thereafter applying test patterns to theone or more cores via the connection formed by the TAP Linking Module.

It is important to note that some cores use the TAP not only for testingbut also for emulation, debug, code development, and system level faultdiagnosis. Therefore the present invention not only provides forselective core testing, but also for selective core emulation, debug,code development, and fault diagnosis operations.

A prior art paper entitled “An IEEE 1149.1 Test Access Architecture ForICs With Embedded Cores” by Whetsel was published in the 1997International Test Conference proceedings, pages 69-78, and isincorporated herein by reference. This paper provides detail on theproblems associated with accessing TAPs of cores embedded in integratedcircuits. Further, the paper provides a solution to this problem bydescribing how the design of standard TAPs of cores may be modified toenable them to operate in cooperation with a TAP Linking Module, suchthat one or more of the modified core TAPs may be selectively accessedfor test and emulation via the TAP Linking Module.

Whetsel U.S. Pat. Nos. 5,056,093 and 5,054,024 describe a system forswitching between TAPs by use of a Device Select Module (DSM). Thisapproach locates the DSM between the tester and plurality of TAPs toallow the 1149.1 instruction and data scans to pass through the DSM andthe currently selected TAPs. 1149.1 instruction and data scans are usedto enable the DSM to switch between the TAPs. In this approach the DSMis scanned during every 1149.1 instruction and data scan operation tothe selected TAPs. The TAP linking module of the present invention isscanned during every 1149.1 instruction scan operation to the selectedTAPs, but not during 1149.1 data scan operations to the selected TAPs.1149.1 data scan operations to the TAP linking module occurs only whenno TAPs are selected for scanning Thus 1149.1 data scans to the TAPlinking module occur separate from 1149.1 data scan to the TAPs. Thedifference therefore between the DSM and TAP linking module is that theDSM is scanned along with the selected TAPs during 1149.1 data scans,while 1149.1 data scans to the TAP linking module occur separate from1149.1 data scans to the TAPs.

The TAP linking module of the present invention provides the benefitsdescribed for the TAP linking module in the Whetsel paper, but withouthaving to modify the design of the standard TAP. The importance of nothaving to modify the standard TAP can be seen in pre-existing (legacy)core designs which are not modifiable. For example, non-modifiablelegacy cores with TAPs may be provided by intellectual property corevendors. Since the cores are not modifiable, their TAPs cannot bemodified for use with the TAP Lining Module described in the Whetselpaper. The present invention provides a method of achieving the sameadvantages stated in the Whetsel paper but without having to modify theTAP design.

As described in the Whetsel paper, existing core TAP access techniqueseither; (1) provide extra test interface pins (TDI, TDO, TMS, TCK, TRST)on the integrated circuit for each TAP, or (2) string all TAPs togetherserially via their TDI and TDO signals and in parallel via their TMS,TCK, and TRST signals and connect the TAP string to one set of testinterface pins on the integrated circuit. When extra test pins are used,each TAP has its own test interface. However, this approach requires theintegrated circuit to have more test pins and the tester to have morescan interface resources. When core TAPs are connected in a string, thespeed at which the string of TAPs may be serially operated (i.e.scanned) is dependant upon each TAP's maximum TCK frequency rate. Forexample, a string of three TAPs may exist where the first TAP canoperate at a 40 Mhz maximum TCK rate, the second TAP can operate at a 10Mhz maximum TCK rate, and the third TAP can operate at a 50 Mhz maximumTCK rate. When scanning the string of TAPs, the TCK frequency rate ofthe string cannot exceed the maximum TCK rate of the second TAP.Therefore scan operations through the TAP string is limited to 10 Mhz,even though the first and third TAPs can operate at 40 and 50 Mhz,respectively. Also, stringing TAPs together does not allow one TAP to beplaced in an 1149.1 RunBist self-test mode while the other TAPs arebeing scanned.

The present invention, as described in detail below, provides a TAPLinking Module design which uses instruction augmentation to achieve aTAP selection system supporting selectable access of non-modifiable TAPscontained within legacy cores.

SUMMARY OF THE INVENTION

In accordance with the present invention, selection and testing ofmultiple TAP'ed cores within a large integrated circuit can be performedwithout adding test interface pins beyond those specified by the IEEE1149.1 standard, and without modifying the TAP design of the cores. Thisis accomplished by a novel design of the Tap Linking Module, referred tohereafter as TLM, which eliminates the need to redesign core TAPs.

Briefly, the present invention enables an IEEE 1149.1 test pin interfaceon an integrated circuit to access any number of standard TAPs within anintegrated circuit by providing a TLM that is operable to switch theTAPs to the test pins in response to 1149.1 scan operations. No designmodifications are required on TAPs used with the present invention.

It is an object of the present invention to provide the followingfeatures.

-   (1) Provide a TLM architecture for integrated circuits which    operates to enable and disable 1149.1 scan access to TAPs without    having to modify the design of TAPs. Hence, the invention can be    used on legacy cores having non-modifiable TAPs.-   (2) Maintain independent development of scan test patterns specific    to each embedded core such that the scan test patterns may be    directly applied to the core independent of other cores within the    integrated circuit. Hence, maintenance and application of core scan    test patterns is simplified.-   (3) Allow for maximizing the scan test frequency (i.e. TCK    frequencies) to each core independent of other cores whose scan test    frequency may be less than the scan test frequency of the core being    tested. Hence, core test times are reduced.-   (4) Ability to re-use, without modification, the test patterns of a    core in different integrated circuit designs utilizing the core.    Hence, the ease of scan test pattern re-use between integrated    circuits utilizing the same core is realized.-   (5) Allow for core test integration to become the simple    concatenation of the different re-usable scan test patterns of the    different cores serially connected to the TLM. Hence, the goal of    simplifying multiple core test integration is achieved.

In accordance with the present invention, there is provided a TLMarchitecture that attains the above described criteria and canaccommodate access to multiple TAPs without having to modify the TAPdesigns. The invention is also compatible with the future lookingdefinition of modifying TAPs as described in the Whetsel paper. Themodified TAPs in the Whetsel paper require two extra signals in additionto the five test signals (TDI, TDO, TMS, TCK, TRST) defined inIEEE-1149.1, namely an enable and select signal. The Whetsel paper alsorequires one or more specific instructions to be added to the TAPs forenabling the switching between multiple TAPs.

The standard TAP as defined in IEEE 1149.1 has two scan operation modes;(1) a data scan operation mode whereby test data is seriallycommunicated through the TAP via the TDI and TDO TAP signals, and (2) aninstruction scan operation mode whereby instruction data is seriallycommunicated through the TAP via the TDI and TDO TAP signals.

The present invention exploits the instruction scan operation mode ofthe TAP to enable the TLM to be loaded with instruction bits which areused to determine which core TAP will be connected to or disconnectedfrom the integrated circuit test pins. During instruction scanoperations, instruction data is scanned through both the connected TAPand an augmentation instruction shift register (AISR) within the TLM.The TLM's AISR extend the instruction register length of the connectedTAP by the number of the bits within the AISR. Thus during instructionscans, the present invention provides an over-shifting technique whichallows instruction data to be loaded in both the instruction register ofthe connected TAP and the AISR of the TLM. The alignment of the TAPinstruction register and the TLM AISR is by design choice. For example,the movement of the instruction data may first proceed through the TAP'sinstruction register then through the AISR, or the movement of theinstruction data may first proceed through the AISR then through theTAP's instruction register.

It is important to note that the TLM's AISR bits are only present in thescan path during TAP instruction scan operations, and not during TAPdata scan operations. Thus, modifications of existing test descriptionlanguages (TDL) that contain both TAP instruction and data scan framesneed only modify the instruction scan frames of the TDL to use thepresent invention.

Also, the instruction scan frame modifications only require extendingthe length of the TDL instruction frames to include the bit positions ofthe AISR. In each TDL instruction scan frame, the augmentation bits willbe set to either; (1) establish a new TAP connection, or (2) maintainthe existing TAP connection. Since the TDL data scan frames are notrequired to be modified by the present invention, core scan test patternreuse is easily achieved by the present invention.

The concept of augmenting TAP instruction scan lengths to communicatedata to a TLM is not limited for use within integrated circuits. Forexample, a TLM can be used at the board level to make various connectionarrangements to TAPs of integrated circuits mounted boards. In thiscase, the TLM may exists as a separate integrated circuit on the board,or as a subcircuit of an integrated circuit on the board.

Briefly, the above process is accomplished by; (1) adding one or morebits to every TAP instruction scan pattern, (2) communicating the addedbit or bits to the AISR of the TLM during instructions scan operations,(3) decoding the added bit or bits at the end of the instruction scanoperations, and (4) depending upon the decoding, either maintaining thecurrent TAP connection or forming a new TAP connection.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a simple schematic diagram of a tester connected to a TLMcircuit which itself is connected to provide access to four core TAPs.

FIG. 2 shows a schematic diagram of the interface connection between theTLM and TAPs 1-4.

FIG. 3 a shows a TLM design where individual augmentation instructionregisters exist for each TAP.

FIG. 3 b shows a TLM design where one augmentation instruction registershared by all TAPs.

FIG. 4 shows a detailed TLM architecture according to the presentinvention.

DESCRIPTION OF THE PREFERRED EMBODIMENT

Referring to FIG. 1, there is shown a typical prior art testing system.The testing system includes an integrated circuit 1 having a pluralityof cores 3 therein, each core having a TAP 5. Each TAP 5 is coupled toTLM 9 via an associated bus 7. The TLM is coupled external of theintegrated circuit to a tester 11. The TLM 9 acts in the manner of aswitch to select one of the TAPs 5 via one of the associated busses 7 tobe connected to the tester. The tester 11 is coupled to the TLM 9 inaccordance with the standard 1149.1 test interface to provide requiredtest inputs to and outputs from a selected TAP 5 via an associated bus7. While not shown, the tester also provides power and ground to powerup the integrated circuit during testing. The TAPs 5 of each core 3serve as the core's test interface to the TLM 9. When the TLM 9 forms aconnection between the tester 11 and one of the core 3 TAPs 5, theconnected TAP 5 is controlled by the tester 11 to serially communicateinstruction and test data and to execute test operations.

Referring to FIG. 2, there is shown schematically and in more detail howmultiple TAPs 1-4 can be connected to a TLM. TAP 0 resides within theTLM. The TLM comprises first and second interfaces. The first interfaceis connected to the 1149.1 TDI, TCK, TMS, TRST, TDO signals on theintegrated circuits test pins. The second interface is connected to the1149.1 TDI1-4, TMST-4, TDO1-4, TCK1-4 signals to each TAP 1-4. Duringtest, the TDI, TDO, TMS, and TCK test pins will be connected to one ofthe TAPs 1-4, via the TLM, to enable the tester 11 of FIG. 1 tocommunicate with the TAP.

In this example, TAP1 is the TAP connected to the test pins followingpower up of the integrated circuit or following activation of the TRSTsignal. TAP1 serves as the integrated circuit's TAP and regulates theJTAG boundary scan test operations of the integrated circuit. TAPswitching occurs by a tester, connected to the integrated circuit's testpins, performing an augmented 1149.1 instruction scan operation throughTAP1 and the TLM. Following the augmented 1149.1 instruction scanoperation, the TLM only is selected for scanning by an 1149.1 data scanoperation to load a new TAP connection configuration. Following the1149.1 data scan operation to the TLM, the new TAP connection occurs andthe tester accesses the new TAP, say TAP2, via the test pins.

Referring now to FIGS. 3 a and 3 b, the basic TLM concept of the presentinvention is seen depending upon augmenting all instruction scanoperations by one or more bits using an augmentation instructionregister within the TLM. In FIGS. 3 a and 3 b, TAP0 represents the TAPwithin the TLM, TAP1 represent the integrated circuit TAP, and TAPs 2-4represent TAPs in cores. This simplified view of how TAPs are associatedwith the TLM's augmentation instruction register illustrates; (1) how1149.1 data scan operations shift data through the selected TAP's dataregister to be passed to the integrated circuits TDO pin via the TLM,and (2) how 1149.1 instruction scan operations shift data through theselected TAP's instruction register and TLM's augmentation instructionregister prior to passing on the integrated circuits TDO pin.

The difference between the embodiments of FIGS. 3 a and 3 b is that eachTAP in FIG. 3 a has its own TLM augmentation instruction register,whereas, in FIG. 3 b, a single TLM augmentation instruction register isshared by all TAPs. From inspection of FIGS. 3 a and 3 b, the concept ofaugmenting only instructions scan operations with an additional bit orbits is clearly seen. It is important to note that the arrangement ofthe TAPs and TLM in FIGS. 3 a and 3 b could be reversed to where 1149.1data and instruction scan operations transmit through the TLM beforetransmitting though the TAPs without departing from the instructionaugmentation concept set forth in the present invention.

Referring to FIG. 4, there is shown the TLM structure which is composedof a TAP state machine 402, a TLM decode 404, a link shift register 406,a link update register 408, an augmentation instruction shift register(AISR) 410, TLM instruction or data scan multiplexer 412, TLMinstruction or data scan multiplexer 414, TDO1-5 multiplexer 416, and anoptional TAP TDI link configuration circuit 418. TCK 422, TMS 424, TDI426, TDO 428, and TRST 438 signals are connected to test pins of theintegrated circuit.

TAP state machine 402 is connected to the output of gate 430 for areceiving reset input. Gate 430 has inputs for receiving a power upreset signal 437 from a power up reset circuit within the integratedcircuit and a TRST signal 438 from a test pin of the integrated circuit.TAP state machine 402 also receives the TCK 422 and TMS 424 signals. TAPstate machine 402 outputs TAP state signals 436 to the TLM decode 404, areset signal 440 to TLM decode 404, link shift register 406, and linkupdate register 408, and a TMS gating signal 442 to gates 420.

TLM decode 404 receives the TAP state signals 436, control signal 433from the AISR 410, enable signals 434 from link update register 408, andthe reset signal 440. TLM decode 404 outputs an IR-SEL signal 448 tomultiplexers 412 and 414, a capture control signal 444 to AISR 410,TDO-SEL signal 446 to multiplexer 416, update signal 450 to link updateregister 408, and shift enable signals 452 to link shift register 406.

AISR 410 receives serial data output 456 from multiplexer 416, capture,shift, update, and reset bus signals 444 from TLM decode 404, and aparallel, fixed 1 and 0 signal input 454. The AISR 410 outputs a serialdata signal 458 to multiplexer 414 and an enable signal 433 to the TLMdecode 404. The AISR 410 responds to bus 444 to perform capture, shift,and update operations during all 1149.1 scan operations.

Link shift register 406 inputs TDI 426, reset signal 440, and shiftenable signals 452. Link shift register 406 outputs data signal 460 tomultiplexer 412. Update register 408 is coupled to receive data fromlink shift register 406 and inputs reset signal 440, and update signal450. Update register 408 outputs enable signals 434 to TLM decode 404and optional configuration signals 462 to optional link configurationcircuit 418.

Multiplexer 412 receives data signal 460 from link shift register 406and TDI signal 426. Multiplexer 412 outputs data 432 to multiplexer 416.Multiplexer 414 receives data signal 456 from multiplexer 416 and datasignal 458 from AISR 410. Multiplexer 414 outputs data to TDO 428.Multiplexer 416 receives the TAPS TDO1-4 outputs 430 and data output 432from multiplexer 412. Multiplexer 416 outputs data 456 to multiplexer414.

Optional link configuration circuit 418 inputs TDI 426, configurationcontrol signals 462, and TAP TDO signals 430. Link configuration circuit418 outputs TAP TDI 1-4 signals 464. The circuit 418 serves toprogrammably connect, in response to control signals 462, TDI 426 to oneof the TDI1-4 TAP inputs. To simplify the following description, it willbe assumed that TDI 426 will be connected to all TDI1-4 TAP inputs. TheWhetsel paper and application Ser. No. 08/918,872 describe use of TDIlinking circuits like that of circuit 418.

The operational description of the FIG. 2 and FIG. 4 TLM circuits isbest understood by initializing the TLM using a reset input from gate430. In response to the reset input, the TAP state machine 402 is reset.When reset, TAP state machine 402 outputs a reset signal 440 to resetthe TLM decode 404, link shift register 406, link update register 408,and all TAPs 1-4 connected to the TLM as shown in FIG. 2. The resetsignal 440 also resets the AISR 410 via bus 444 to a code that is inputto TLM decode 404 via signal 433. Following reset, link update register408 outputs enable signals 434 to TLM decode 404 and enable TAP1 of FIG.2 to be the only TAP, external of the TLM, enabled and connected to thetest pins of the integrated circuit, via the TLM. The TLM's TAP statemachine 402 (TAP0 of FIG. 2) is also enabled and connected to the testpins so that it can track the state of the test pins to know what 1149.1operation is being performed.

During an 1149.1 data scan operation, TAP 1 receives control from TMS1and TCK1 from the TLM to input data from TDI 426 and shift the datathrough a data register (TAP 1's Bypass register) to TAP 1's TDO1 output430. The TDO1 output 430 passes through TLM multiplexers 416 and 414 tobe output on TDO 428. During this 1149.1 data scan operation, no data isinput to the link shift register 406 from TDI 426 since the TLM decode404 is disabled by the AISR 410 reset code input 433 from responding toTAP state machine 402 control bus 436 to output shift enable signals 452to the link shift register 406.

During an 1149.1 instruction scan operation, TAP 1 receives control fromTMS1 and TCK1 from the TLM to input data from TDI 426 and shift the datathrough its instruction register to TAP 1's TDO1 output 430. The TDO1output 430 passes through multiplexers 416 to be input to AISR 410, isshifted through AISR 410 to be output on TDO 428, via multiplexer 414.During this 1149.1 instruction scan operation the need to add bits tothe 1149.1 instruction scan frame is seen from the fact that the AISR410 lies in series with the TAP1 instruction register. With a two bitshift register AISR 410, as shown in this example, two bits will beadded or augmented to the length of the instruction scan frame to allowshifting a two bit code into the AISR 410 during instruction scanoperations.

Prior art 1149.1 instruction or data scan operations comprise the stepsof capturing data into an instruction or data register, shifting datathrough an instruction or data register, and updating data from aninstruction or data registers. During the above mentioned instructionscan operation, the AISR 410 captures a two bit 10 input 454 code, thenperforms the shift and update steps. This two bit 10 input code enablesthe AISR to output a leading 1 then 0 bit during the shift step to becompatible with what conventional 1149.1 instructions register mustoutput to comply with the 1149.1 standard. Thus the two bit 10 inputcode is provided for compatibility with 1149.1. If 1149.1 did not havethis initial 1 then 0 bit shift out requirement, the ASIR 410 could beimplemented as a single bit shift register.

The two bits shifted into the AISR 410 during the above mentioned 1149.1instruction scan operation must provide at least two codes, a TAP scancode and a TLM scan code. The TAP scan code operates to enable scanoperations through the currently selected TAP from TDI 426 to TDO 428,and disable scan operations through the TLM's link update register fromTDI 426 to TDO 428. The TLM scan code operates to enable scan operationsthrough the TLM's link shift register from TDI 426 to TDO 428 anddisable scan operations through the currently selected TAP from TDI 426to TDO 428. During reset, the AISR 410 is reset to the TAP scan code andthe link update register 408 is reset to connect TAP1 to the test pins.The reset condition of AISR 410 and link update register 408 are inputto TLM decode 404 via busses 433 and 434, respectively, for decoding.

If, following the above mentioned 1149.1 instruction scan operation, theAISR 410 was loaded with a TAP scan code, no change would occur in theTLM or in the current selection of TAP1 being the TAP connected to theintegrated circuits test pins. If a TAP scan code was loaded, the abovedescribed 1149.1 data and instruction scan access operations of TAP1could be repeated. However, if the AISR 410 was loaded with a TLM scancode during the above mentioned 1149.1 instruction scan operation, thefollowing TLM changes would occur. First, scan access to the currentlyselected TAP1 would be disabled by the TCK1-4 and TMST-4 outputs ofgates 470 and 420, respectively, being gated low by TCKEN 468 andTMSEN1-4 signals 466 from the TLM decode 404. Second, scan access to thelink shift register 406 and link update register 408 would be enabled bythe shift enable signals 452 and update signal 450 from TLM decode 404.These changes in the TLM would occur in response to the instructionregister update step which occurs at the end of the above mentioned1149.1 instruction scan operation.

Assuming a TLM scan code were loaded into the AISR 410, a subsequent1149.1 data register scan operation would cause the TAP state machine402 to output control 436 to cause control 452 to enable data on TDI 426to be shifted through link shift register 406 to TDO 428, viamultiplexers 412, 416, and 414. Following this data shift operation,update control on bus 436 from TAP state machine 402 will cause control450 from TLM decode 404 to update data shifted into the link shiftregister 406 into the link update register 408. Following the updateoperation, the enable outputs 434 from the link update register areinput to the TLM decode 404 to bring about a new desired TAP connectionarrangement to the integrated circuits test pins. Also, in response tothe update operation the AISR is reset via bus 444 to contain the TAPscan code to enable the new TAP connection arrangement to be immediatelyavailable for 1149.1 instruction and data scan operations, via the testpins.

If, while the AISR 410 contained the above mentioned TLM scan code, an1149.1 instruction scan operation were performed instead of an 1149.1data register scan operation, data on TDI 426 would pass throughmultiplexers 412 and 416 to be shifted through the AISR 410 and outputto TDO 428, via multiplexer 414. In this case the current TLMconfiguration would be maintained, since the link shift and updateregisters do not receive data register scan control on the shift enable452 and update 450 control signals to shift and update data from TDI 426and TDO 428. Since the AISR 410 is included in the TDI 426 and TDO 428path through the TLM during instruction scans, it can be loaded witheither a TLM or TAP scan code. If a TAP scan code is loaded into theAISR 410, the current TAP configuration is again available for 1149.1scan access, via the integrated circuits test pins. During instructionscan operations with the AISR containing a TLM scan code, the TAPs 1-4are disabled and do not respond to the instruction scan operation, asmentioned above for data register scan operations with the AISR 410containing the TLM scan code. If desired an instruction register may beimplemented in the TLM in place of directly wiring TDI 426 to input 1 ofmultiplexer 412. If implemented, the instruction register's input isconnected to the node where TDI 426 inputs to the linking shift register406 and the instruction register's output is connected to input 1 ofmultiplexer 412, i.e. the instruction register will be in parallel withthe linking shift register 406. Providing an instruction register in theTLM enables it to have instruction capabilities that may provide usefulexpanded TLM capabilities.

It is important to note that other AISR codes may be defined for use bythe TLM of the present invention. For example, a TLM scan code-A may bedefined to modify the behavior of the TLM to where 1149.1 instructionscan operations, occurring while the AISR contains the TLM scan code-A,shifts instruction data through the currently selected TAP instead ofthrough the TLM as described above. In response to a TLM scan code-A,the TLM decode 404 would be configured to respond to 1149.1 instructionscan control outputs on bus 436 of TAP state machine 402 to enable theappropriate TCK1-4 and TMS1-4 signals to perform the instruction scanoperation on the currently selected TAP. During the instruction scanoperation, the link shift and update registers 406 and 408 are disabledby the TLM decode 404. This mode of accessing the currently selected TAPduring 1149.1 instruction scan operations occurring when the TLM isselected for 1149.1 data scan operations is consistent with the way theTLM of the Whetsel paper and patent application Ser. No. 08/918,872behaves. Thus behavioral consistency is achieved between the two TLMtypes using a TLM scan code-A.

When the TLM is updated with a new TAP connection configuration,following the above mentioned data register scan operation, the newlyselected TAP, say TAP2, is available for 1149.1 scan access via the testpins. The previously selected TAP1 is disabled from 1149.1 scan access.Control input 446 to multiplexer 416 from TLM decode 404 will be set bythe enable bus 434 output from link update register 408 to connect theTDO output of the newly selected TAP, for example TDO2 will be selectedfor TAP2, TDO3 for TAP3, and TDO4 for TAP4.

The above process of augmenting instruction scans to a currentlyselected TAP to include a TLM scan code to be loaded into the AISR 410can be repeated whenever a new TAP connection to the test pins isrequired to meet a test or emulation access need. It is important tonote that only 1149.1 instruction scan frames need to be augmented toinclude the AISR code, and not 1149.1 data scan frames. Therefore, thepresent invention does not require modification of test data scan frames(TDL), which facilitates reuse of the test data scan frames.

The basic function of the TLM of the present invention to control andaccess embedded TAPs within integrated circuits is very similar to theTLM described in the Whetsel paper and patent application Ser. No.08/918,872. The novelty introduced by the TLM of the present inventionlies in its use of an AISR 410 and the augmentation of instruction scanframes to include the AISR 410 codes. The TLM of the Whetsel paper andpatent application Ser. No. 08/918,872 used additional TAP communicationsignals, referred to as select and enable signals, to achieve controland access of embedded TAPs. The TLM of FIG. 4 does not require use ofthese additional TAP signals. Thus the TLM of FIG. 4 may be used withstandard, non-modified 1149.1 TAPs.

The TLM of the present invention provides a process for changing TAPconnections comprising the steps of; (1) performing an 1149.1instruction scan operation augmented with a code for accessing the TLM,(2) performing an 1149.1 data scan operation to load the TLM with a newTAP connection configuration, and (3) performing 1149.1 instruction anddata scan operations on the new TAP connection.

Though the invention has been described with reference to a specificpreferred embodiment thereof, many variations and modifications willimmediately become apparent to those skilled in the art. It is thereforethe intention that the appended claims be interpreted as broadly aspossible in view of the prior art to include all such variations andmodifications.

1. An integrated circuit comprising: A. first test access port circuitryhaving a first test data input, a first test data output, a first testclock input, and a first test mode select input; B. second test accessport circuitry having a second test data input, a second test dataoutput, a second test clock input, and a second test mode select input;and C. tap linking module circuitry having: i. a first test data outputconnected to the first test data input; ii. a second test data output,separate from the first test data output, connected to the second testdata input; iii. a test data input lead, a test data output leadseparate from the first test data output and separate from the secondtest data output, a test clock input lead, and a test mode select inputlead; iv. link configuration circuitry having an input connected to thetest data input lead, an output connected to the first test data output,another output connected to the second test data output, and a controlinput; and v. link shift/update circuitry having an input connected tothe test data input lead, an output coupled to the test data outputlead, and a control output connected to the control input of the linkconfiguration circuitry.
 2. The integrated circuit of claim 1 in whichthe first test access port includes: i. a data register connectedbetween the test data input and test data output and having a controlinput; ii. an instruction register connected between the test data inputand the test data output; and iii. a boundary scan register connectedbetween the test data input and the test data output.
 3. The integratedcircuit of claim 1 in which the first test access port includes: i. adata register connected between the test data input and test data outputand having a control input; and ii. an instruction register connectedbetween the test data input and the test data output.